package com.example.demo01.Socket.Server;

import com.example.demo01.VO.IPacketInstruction;
import com.example.demo01.VO.TelNo01;
import com.example.demo01.VO.TelNo02;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class ServerBizHandler extends SimpleChannelInboundHandler<IPacketInstruction> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, IPacketInstruction iPacketInstruction) throws Exception {

        log.info("sss");
        log.info(iPacketInstruction.getTelNo());

        TelNo02 telNo02=new TelNo02();

        channelHandlerContext.writeAndFlush(telNo02);
    }
}
